﻿@model Model.SysUserInfo
@{
    ViewBag.Title = "UserAdd";
    Layout = "~/Views/Shared/_Main.cshtml";
}
<style type="text/css">
    #Pwd 
    {
        width: 147px; 
    }
</style>
@*<link href="../../CSS/PageStyle.css" rel="stylesheet" type="text/css" />*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm("Create", "SysUser"))
{
    @Html.ValidationSummary(true)
    <div id="p" class="easyui-panel" style="width: 800px; padding: 10px 5px 10px 5px;"
        data-options="title:'用户信息添加',iconCls:'icon-edit'">
        <div class="edit_main">
            <div class="editor">
                <div class="editor-label">
                    姓名：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.EmployeeName)
                    @Html.ValidationMessageFor(model => model.EmployeeName)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    工号：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.EmployeeID)
                    @Html.ValidationMessageFor(model => model.EmployeeID)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    办工电话：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.OfficeTel)
                    @Html.ValidationMessageFor(model => model.OfficeTel)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    家庭电话：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.HomeTel)
                    @Html.ValidationMessageFor(model => model.HomeTel)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    手机：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Mobile)
                    @Html.ValidationMessageFor(model => model.Mobile)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    性别：
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Gender, WebPortal.Controllers.PEParaController.SelectList("Sex"), "--请选择--")
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    EMAIL：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.OfficeEmail)
                    @Html.ValidationMessageFor(model => model.OfficeEmail)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    用户名：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Username)
                    @Html.ValidationMessageFor(model => model.Username)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    用户密码：
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(model => model.Pwd)
                    @Html.ValidationMessageFor(model => model.Pwd)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    确认密码：
                </div>
                <div class="editor-field">
                    @Html.PasswordFor(model => model.Pwd)
                    @Html.ValidationMessageFor(model => model.Pwd)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    状态：
                </div>
                <div class="editor-field">
                    @Html.DropDownListFor(model => model.Status, WebPortal.Controllers.SystemConfigurationController.DropDownStatus(), "--请选择--")
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    公司：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.CompanyName)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    部门：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Department)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label">
                    岗位：
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.Post)
                </div>
            </div>
            <div class="editor">
                <div class="editor-label" style="padding-top:15px;">
                &nbsp;
                </div>
                <div class="editor-field">
                    <input id="Save" type="submit" value=" 保存 " />
                    <input type="button" value=" 返回 " onclick="back();" />
                </div>
            </div>
        </div>
    </div>
}
